package com.java.pojo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ComEmp entity. @author MyEclipse Persistence Tools
 */

public class ComEmp implements java.io.Serializable {

	// Fields

	private String EId;
	private String EName;
	private String EPwd;
	private Integer EDeptno;
	private String EPhone;
	private String EEmail;
	private String ESex;
	private Timestamp EBirthday;
	private String EDescribe;
	private String EJob;
	private String ERight;
	private String EStatus;
	private Set comRooms = new HashSet(0);
	private Set <ComRoleEmp>comRoleEmps = new HashSet<ComRoleEmp>(0);
	private Set comDepts = new HashSet(0);

	// Constructors

	/** default constructor */
	public ComEmp() {
	}

	/** minimal constructor */
	public ComEmp(String EId) {
		this.EId = EId;
	}

	/** full constructor */
	public ComEmp(String EId, String EName, String EPwd, Integer EDeptno,
			String EPhone, String EEmail, String ESex, Timestamp EBirthday,
			String EDescribe, String EJob, String ERight, String EStatus,
			Set comRooms, Set comRoleEmps, Set comDepts) {
		this.EId = EId;
		this.EName = EName;
		this.EPwd = EPwd;
		this.EDeptno = EDeptno;
		this.EPhone = EPhone;
		this.EEmail = EEmail;
		this.ESex = ESex;
		this.EBirthday = EBirthday;
		this.EDescribe = EDescribe;
		this.EJob = EJob;
		this.ERight = ERight;
		this.EStatus = EStatus;
		this.comRooms = comRooms;
		this.comRoleEmps = comRoleEmps;
		this.comDepts = comDepts;
	}

	// Property accessors

	public String getEId() {
		return this.EId;
	}

	public void setEId(String EId) {
		this.EId = EId;
	}

	public String getEName() {
		return this.EName;
	}

	public void setEName(String EName) {
		this.EName = EName;
	}

	public String getEPwd() {
		return this.EPwd;
	}

	public void setEPwd(String EPwd) {
		this.EPwd = EPwd;
	}

	public Integer getEDeptno() {
		return this.EDeptno;
	}

	public void setEDeptno(Integer EDeptno) {
		this.EDeptno = EDeptno;
	}

	public String getEPhone() {
		return this.EPhone;
	}

	public void setEPhone(String EPhone) {
		this.EPhone = EPhone;
	}

	public String getEEmail() {
		return this.EEmail;
	}

	public void setEEmail(String EEmail) {
		this.EEmail = EEmail;
	}

	public String getESex() {
		return this.ESex;
	}

	public void setESex(String ESex) {
		this.ESex = ESex;
	}

	public Timestamp getEBirthday() {
		return this.EBirthday;
	}

	public void setEBirthday(Timestamp EBirthday) {
		this.EBirthday = EBirthday;
	}

	public String getEDescribe() {
		return this.EDescribe;
	}

	public void setEDescribe(String EDescribe) {
		this.EDescribe = EDescribe;
	}

	public String getEJob() {
		return this.EJob;
	}

	public void setEJob(String EJob) {
		this.EJob = EJob;
	}

	public String getERight() {
		return this.ERight;
	}

	public void setERight(String ERight) {
		this.ERight = ERight;
	}

	public String getEStatus() {
		return this.EStatus;
	}

	public void setEStatus(String EStatus) {
		this.EStatus = EStatus;
	}

	public Set getComRooms() {
		return this.comRooms;
	}

	public void setComRooms(Set comRooms) {
		this.comRooms = comRooms;
	}

	public Set <ComRoleEmp>getComRoleEmps() {
		return this.comRoleEmps;
	}

	public void setComRoleEmps(Set <ComRoleEmp>comRoleEmps) {
		this.comRoleEmps = comRoleEmps;
	}

	public Set getComDepts() {
		return this.comDepts;
	}

	public void setComDepts(Set comDepts) {
		this.comDepts = comDepts;
	}

	@Override
	public String toString() {
		return "ComEmp [EBirthday=" + EBirthday + ", EDeptno=" + EDeptno
				+ ", EDescribe=" + EDescribe + ", EEmail=" + EEmail + ", EId="
				+ EId + ", EJob=" + EJob + ", EName=" + EName + ", EPhone="
				+ EPhone + ", EPwd=" + EPwd + ", ERight=" + ERight + ", ESex="
				+ ESex + ", EStatus=" + EStatus + ", comDepts=" + comDepts
				+ ", comRoleEmps=" + comRoleEmps + ", comRooms=" + comRooms
				+ "]";
	}
	public String toString2(){
		return "ComEmp [EDeptno="+EDeptno+"]";
	}

}